﻿@using VietTrips.WebUI.Areas.Management.Models
@using VietTrips.WebUI.Helpers
@model VietTrips.WebUI.Areas.Management.Models.AdminSettingsModel
@{
    NavCurrentHelper.Menu = 8;
    NavCurrentHelper.Submenu = 1;
    ViewBag.Title = "Cài Đặt Chung";
    Layout = "~/Areas/Management/Views/Shared/_AdminLayout.cshtml";
}

@section featured {
    <!-- BEGIN PAGE HEADER-->
<div class="row">
    <div class="col-md-12">
        <!-- BEGIN PAGE TITLE & BREADCRUMB-->
        <h3 class="page-title">
            @ViewBag.Title
        </h3>
        <ul class="page-breadcrumb breadcrumb">
            <li>
                <i class="fa fa-home"></i>
                <a href="@Url.Action("Dashboard", "Admin")">
                    Trang Thông Tin
                </a>
                <i class="fa fa-angle-right"></i>
            </li>
            <li>
                <i class="fa fa-home"></i>
                <a href="@Url.Action("Settings", "Admin")">
                    Cài Đặt Hệ Thống
                </a>
                <i class="fa fa-angle-right"></i>
            </li>
            <li>
                <a href="#">
                    @ViewBag.Title
                </a>
            </li>
            <li class="pull-right">
                <div id="dashboard-report-range" class="dashboard-date-range tooltips" data-placement="top" data-original-title="Change dashboard date range">
                    <i class="fa fa-calendar"></i>
                    <span>
                    </span>
                    <i class="fa fa-angle-down"></i>
                </div>
            </li>
        </ul>
        <!-- END PAGE TITLE & BREADCRUMB-->
    </div>
</div>
<!-- END PAGE HEADER-->
}

<div class="row">
    <div class="col-xs-12 col-md-12">
        <!-- BEGIN SAMPLE FORM PORTLET-->
        <div class="portlet">
            <div class="portlet-title">
                <div class="caption">
                    <i class="fa fa-reorder"></i> Cài Đặt Chung
                </div>
            </div>
            <div class="portlet-body form">
                @using (Html.BeginForm("Settings", "Admin", FormMethod.Post, htmlAttributes: new { @class = "form-horizontal", role = "form" }))
                {
                    @Html.AntiForgeryToken()
                    <div class="form-body">
                        <div class="form-group">
                            <label class="col-md-3 control-label">Tên Hệ Thống</label>
                            <div class="col-md-8">
                                @Html.TextBoxFor(m => m.AppName, htmlAttributes: new { @class = "form-control", placeholder = "Tên Websites hoặc Công Ty" })
                                <span class="help-block">
                                    Tên hiển thị đại diện cho hệ thống.
                                </span>
                                <p class="text-danger text-error">@Html.ValidationMessageFor(m => m.AppName)</p>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-md-3 control-label">Administrator Email</label>
                            <div class="col-md-8">
                                <div class="input-group">
                                    <span class="input-group-addon">
                                        <i class="fa fa-envelope"></i>
                                    </span>
                                    @Html.TextBoxFor(m => m.AdminEmail, htmlAttributes: new { @class = "form-control", placeholder = "Địa Chỉ Email" })
                                </div>
                                <span class="help-block">
                                    Địa chỉ email của người quản trị. Dùng cho mục đích gửi thư thông báo.
                                </span>
                                <p class="text-danger text-error">@Html.ValidationMessageFor(m => m.AdminEmail)</p>
                            </div>
                        </div>
                    </div>
                    <div class="form-actions">
                        <div class="col-md-offset-3 col-md-9">
                            <button type="submit" class="btn blue">Lưu thay đổi</button>
                            <button type="button" class="btn default">Huỷ Thay Đổi</button>
                        </div>
                    </div>
                }
            </div>
        </div>
    </div>
</div>
